home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !preview / h / structs < prev    next >
Encoding:
Text File  |  1990-07-06  |  996 b   |  59 lines

  1. /* h.structs --- structures for storing the dvi pages in memory.  */
  2.  
  3. struct text
  4. {
  5.   struct text *next;
  6.   char *text;
  7.   int x, y, w, h, font;
  8. };
  9.  
  10. struct rule
  11. {
  12.   struct rule *next;
  13.   int x, y, w, h;
  14. };
  15.  
  16. struct font_use
  17. {
  18.   struct font_use *next;
  19.   char *name;
  20.   int size;     /* in 16ths of a point.  */
  21.   int handle;
  22. };
  23.  
  24. struct page
  25. {
  26.   struct page *next;
  27.   struct text *texts;
  28.   struct rule *rules;
  29.   int dvi_page;
  30.   int tex_pages[10];
  31. };
  32.  
  33. struct dvi_file
  34. {
  35.   struct dvi_file *next;
  36.   char *name;
  37.   struct font_use *fonts;
  38.   struct page *pages;
  39.   int height, width;
  40. };
  41.  
  42. extern struct dvi_file *dvi_files;
  43.  
  44.  
  45. struct display_window
  46. {
  47.   struct display_window *next;
  48.   int w_handle;
  49.   struct dvi_file *file;
  50.   int hor_offset, ver_offset;        /* 1 inch both normally.  */
  51.   struct page *page;
  52.   sprite_area *area;                 /* The area of this file.  */
  53.   sprite_ptr sprite;                 /* The sprite holding this page's image.  */
  54. };
  55.  
  56. extern struct display_window *windows;
  57.  
  58. /* EOF */
  59.